﻿<?php 
	error_reporting(E_ERROR | E_PARSE);
	include_once("includes/ini.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
 Transitional//EN" "http://www.w3.org/TR/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">

<link rel="stylesheet" href="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery-ui-1.8.16.custom/development-bundle/demos/demos.css">
<link rel="stylesheet" href="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery-ui-1.8.16.custom/development-bundle/themes/base/jquery.ui.all.css">
<link rel="stylesheet" href="<?php echo EXTERNAL_ROOT_PORTAL;?>/slider/css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo EXTERNAL_ROOT_PORTAL;?>/calculadora/css/calc_css.css" />
<link rel="stylesheet" href="<?php echo EXTERNAL_ROOT_PORTAL;?>/style.css" type="text/css" media="screen" />
<link href="<?php echo EXTERNAL_ROOT_PORTAL;?>/img/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link href="<?php echo EXTERNAL_ROOT_PORTAL;?>/css/estilo_site.css" type="text/css" rel="stylesheet">

<?php if($_SERVER['PHP_SELF'] == '/colunistas.php'){ ?>
<script src="<?php echo EXTERNAL_ROOT_PORTAL;?>/colunista/jquery-1.2.6.js" type="text/javascript" charset="utf-8"></script>
<script src="<?php echo EXTERNAL_ROOT_PORTAL;?>/colunista/jquery-ui-full-1.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<?php } ?>

<?php if($_SERVER['PHP_SELF'] =='/calculadora.php'){ ?>
<script type="text/javascript" src="<?php echo EXTERNAL_ROOT_PORTAL;?>/calculadora/js/jquery.js" ></script>
<script type="text/javascript" src="<?php echo EXTERNAL_ROOT_PORTAL;?>/calculadora/js/jquery.maskMoney.js" ></script>
<script type="text/javascript" src="<?php echo EXTERNAL_ROOT_PORTAL;?>/calculadora/js/util.js" ></script>

<script>
	mascaraDecimal('valor');
	mascaraDecimal('taxa');
	mascaraSomenteNumero('tempo');
</script>
<?php } ?>

<?php if($_SERVER['PHP_SELF'] == '/index.php'){ ?>
<script type="text/javascript" src="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/scripts.js"></script>
<script type="text/javascript" src="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery_fade/jquery.js"></script>
<script type="text/javascript" src="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery_fade/custom.js"></script>
<script src="<?php echo EXTERNAL_ROOT_PORTAL;?>/slider/js/jquery-1.6.1.min.js" type="text/javascript"></script>

<script src="<?php echo EXTERNAL_ROOT_PORTAL;?>/slider/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript" charset="utf-8">
        window.onload = function () {
            var container = $('div.sliderGallery');
            var ul = $('ul', container);
            
            var itemsWidth = ul.innerWidth() - container.outerWidth();
            
            $('.slider', container).slider({
                min: 0,
                max: itemsWidth,
                handle: '.handle',
                stop: function (event, ui) {
                    ul.animate({'left' : ui.value * -1}, 500);
                },
                slide: function (event, ui) {
                    ul.css('left', ui.value * -1);
                }
            });
        };
    </script>
<?php } ?>
    
<?php if($_SERVER['PHP_SELF'] =='/noticia.php'){ ?>
<script src="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery-ui-1.8.16.custom/development-bundle/jquery-1.6.2.js"></script>
<script src="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery-ui-1.8.16.custom/development-bundle/ui/jquery.ui.core.js"></script>
<script src="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery-ui-1.8.16.custom/development-bundle/ui/jquery.ui.widget.js"></script>
<script src="<?php echo EXTERNAL_ROOT_PORTAL;?>/js/jquery-ui-1.8.16.custom/development-bundle/ui/jquery.ui.datepicker.js"></script>
<script>
$(function() {
	$( ".datepicker" ).datepicker();
});
</script>
<?php } ?>

<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="css/estilo_IE9.css"/>
<![endif]-->

<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="css/estilo_IE8.css"/>
<![endif]-->

<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="css/estilo_IE7.css"/>
<![endif]-->
<title><?php echo $title;?></title>
</head>
       <div id="conteudo_cabecalho">
     			<div id="topo">		   
						   <div id="div_logo">
						   <h1 id="logo_econometrix"><a href="index.php"><img border="0" src="img/e-logo.png"></a></h1>
						   <h1 id="nome_econometrix"><a href="index.php"><img border="0" src="img/nome-logo.png"></a></h1><br><br>
						   <h5 id="data_hora"><label>
								<?php 
						   	 		$dia = date("w");
						   	 		switch($dia){
						   	 			case 0: $dia_texto = "Domingo"; break;
						   	 			case 1: $dia_texto = "Segunda-Feira"; break;
						   	 			case 2: $dia_texto = "Ter&ccedil;a-Feira"; break;
						   	 			case 3: $dia_texto = "Quarta-Feira"; break;
						   	 			case 4: $dia_texto = "Quinta-Feira"; break;
						   	 			case 5: $dia_texto = "Sexta-Feira"; break;
						   	 			case 6: $dia_texto = "Sabado"; break;
						   	 			default: $dia_texto = "Error";
						   	 		}
						   	 		$mes = date(m);
						   	 		switch($mes){
						   	 			case 1: $mes_texto = "Janeiro"; break;
						   				case 2: $mes_texto = "Fevereiro"; break;
						   				case 3: $mes_texto = "Ma&ccedil;o"; break;
						   				case 4: $mes_texto = "Abril"; break;
						   				case 5: $mes_texto = "Maio"; break;
						   				case 6: $mes_texto = "Junho"; break;
						   				case 7: $mes_texto = "Julho"; break;
						   				case 8: $mes_texto = "Agosto"; break;
						   				case 9: $mes_texto = "Setembro"; break;
						   				case 10: $mes_texto = "Outubro"; break;
						   				case 11: $mes_texto = "Novembro"; break;
						   				case 12: $mes_texto = "Dezembro"; break;
						   	 			default: $mes_texto = "Error";
						   	 		}
						   	 		echo $dia_texto.', '.date(d).' de '.$mes_texto.' de '.date(Y);
							    ?>
							</label></h5>
						   </div>
						   				   
						  						 
			    </div>  <!-- /#topo -->
					  <div style="margin:5px 0 0 0;">	 				 
						<div id="meio-banner">
						 <h1 style="margin:0 auto;width:600px;"><!--BEGIN HR BNB GiroEstoqueAulas Econometrix ROS 600x100 (RM - Selo / Retangulo / Outros)-->
							<script language="JavaScript">
							var trclick = "";
							var random = Math.floor(Math.random() * 1000000000);
							document.write('<scr' + 'ipt language="JavaScript" src="http://hrads.valuead.com/code?pid=8789&gid=58&oin=0&rid=' + random +'"></scr' + 'ipt>');
							</script>
							<!--END HR -->          
                         </h1>
						</div>
						<div id="formulario">
						   <table id="ajuste_ie" >
						    <tr>
						      <td ><label id="txt_usuario_form">usu&aacute;rio</label><input class="nome" value="" type="text"/></td>
						    </tr>
						    <tr>
						      <td><label id="txt_usuario_form">senha&nbsp;&nbsp;</label><input class="password" value="" type="password"/></td>
						    </tr>
						    <tr>
						      <td><label id="txt_usuario_form">cadastro</label><input id="salvar_cabecalho_form" value="entrar" type="submit"></td>
						    </tr>
						    <tr style="float:right;height:10px;">
						      <td id="form_loguim">
								<form action="busca.php" method="get">
									<input id="search2" name="search" type="text">
									<input name="local" value="1" class="radio2" type="radio"  checked="checked"/>
									<label id="label_login_local">local</label>
									<input name="local" value="2" class="radio3" type="radio" />
									<label id="label_login_web">web</label>
									<input id="busca_icon" value="buscar" type="submit">
								</form>
							  </td>
							</tr>
						   </table>		 
						</div>
						   	<div id="divclear"></div>
					  </div>         			 
			  <div id="menu">
			    <ul id="menu_list">
			        <li id="menu_list_li_home"><a href="index.php"><img border="0" src="img/home.png"></a></li>
			        <li id="menu_list_li"><a href="institucional.php">institucional</a></li>
			        <li id="menu_list_li"><a href="calculadora.php">c&aacute;lculos</a></li>
			        <li id="menu_list_li"><a href="colunistas.php">colunista</a></li>
			        <li id="menu_list_li"><a href="parceiro.php">parceiros</a></li>
			        <li id="menu_list_li"><a href="glossario.php">glossário</a></li>
			        <li id="menu_list_li"><a href="estatisticas.php">BD<span id="bdtrix2">TRIX</span></a></li>
			        <li id="menu_list_li"><a href="multimidia.php">multimidia</a></li>
			        <li id="menu_list_li"><a href="noticia.php">not&iacute;cias</a></li>
			        <li id="menu_list_li"><a href="academicos.php">publica&ccedil;&otilde;es acadêmicos</a></li>
			    </ul>
			    <div id="div_barra_financas">
			      <?php if($_SERVER['PHP_SELF']=='/index.php'){ ?><div id="div_img_finacas"><?php include_once 'variaveis.php';?></div> <?php }?>
			    </div>
			  </div>
      </div>